package com.nt;

public class Text {
	
	public static void main(String args[]){
		Thread t1 = new myThread("one");
		Thread t2 = new myThread("two");
		t1.start();
		t2.start();
	}
}
     class myThread extends Thread{
		public myThread(String str){
			super(str);
		}
		public void run(){
			for(int i=0;i<10;i++){
			System.out.println(i+" "+getName());
		}
		System.out.println("yes!"+getName());
	}
}